# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-html-tagfilter
pkgver=1.03
pkgrel=15
pkgdesc="Perl/CPAN Module HTML::TagFilter"
arch=("any")
url="https://search.cpan.org/dist/HTML-TagFilter"
license=("GPL" "PerlArtistic")
makedepends=("perl-uri" "perl-html-parser")
depends=("perl-uri" "perl-html-parser")
source=("https://www.cpan.org/authors/id/W/WR/WROSS/HTML-TagFilter-$pkgver.tar.gz")
sha256sums=('daf228b5f964d16b4f323eff3198955649e37217791de083ffc53d2f850537f5')

build() {
  cd "$srcdir"/HTML-TagFilter-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/HTML-TagFilter-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
